import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import SocketService from '@/utils/socket_service.js'
// 对服务端进行websocket的连接
SocketService.Instance.connect()

axios.defaults.baseURL = `http://127.0.0.1:8888/api/`
Vue.config.productionTip = false
//公共样式
import '@/assets/scss/layout.scss'
//原型挂载
Vue.prototype.$Echarts= window.echarts;
Vue.prototype.$Axios= axios;
Vue.prototype.$WebSocket = SocketService.Instance;
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
